﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Caching;
using WebCache = System.Web.Caching.Cache;

namespace mForum.Web.Common.Infrastructure.Cache
{
    public interface ICache
    {
        void Set<T>(string key, object value, DateTime absoluteExpiration, TimeSpan slidingExpiration);
        void Set<T>(string key, object value, DateTime absoluteExpiration);
        void Set<T>(string key, object value, TimeSpan slidingExpiration);
        T Remove<T>(string key);
        void Clear();
        T Get<T>(string key);
    }
}
